from boto.s3.connection import S3Connection
import uuid
from symbol import except_clause

try:
    conn = S3Connection(aws_access_key_id="AKIAI5D6YYRWJZF2CODQ", aws_secret_access_key="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", proxy="proxy.jpmchase.net", proxy_port="8443")
except ValueError:
    print "Oops! something wrong in secret key"

bucketName = "my-first-s3-bucket-" + uuid.uuid4().__str__()
key = "MyObjectKey";
conn.create_bucket(bucketName)
print "Bucket created"
conn.delete_bucket(bucketName)
print "Bucket deleted"
